<template>
  <v-dialog
    v-model="trizDialog"
    max-width="900"
  >
    <v-card rounded="xl" style="background-color: #FFFAF4">
      <v-card-title class="text-h6">
        阿奇舒勒矛盾矩阵
      </v-card-title>

      <v-card-text>
        <v-card
          elevation="2"
          rounded="xl"
          max-width="900px"
          style="margin-top: 30px; margin-bottom: 30px;"
        >
          <div style="text-align: center;">
            <v-form
              ref="form"
              v-model="valid"
              style="margin: auto"
            >
              <v-row>
                <v-col
                  cols="12"
                  lg="5">
                  <v-select
                    style="max-width: 300px; margin: auto"
                    v-model="form.y"
                    :items="items_y"
                    item-text="name"
                    item-value="id"
                    label="要改进的参数"
                    :rules="[v => !!v || '请输入参数']"
                    required
                  ></v-select>
                </v-col>
                <v-col
                  cols="12"
                  lg="5">
                  <v-select
                    style="max-width: 300px; margin: auto"
                    v-model="form.n"
                    :items="items_y"
                    item-text="name"
                    item-value="id"
                    label="会恶化的参数"
                    :rules="[v => !!v || '请输入参数']"
                    required
                  ></v-select>
                </v-col>
                <v-col cols="1">
                  <v-btn
                    elevation="2"
                    rounded
                    large
                    color="main_1"
                    @click="validate"
                    style="font-family: '华文楷体',sans-serif; font-weight: bold; font-size: 15px; color:#FFFAF4; margin-top: 10px"
                  >
                    <span>提交</span>
                    &nbsp;
                    <a-icon type="double-right"/>

                  </v-btn>
                </v-col>
              </v-row>
            </v-form>
          </div>
        </v-card>
      </v-card-text>

    </v-card>
  </v-dialog>
</template>

<script>
export default {
  name: "Triz",
  data: () => ({
    trizDialog: false,
    items: 5,
    index: 0,
    triz: [], //矛盾矩阵
    solve: [], //发明原理数组
    valid: true,
    form: {},
    resultArray: [],
    textRules: [
      v => !!v || '请输入参数',
    ],
    items_y: [
      {name: '1.运动物体的质量', id: 1},
      {name: '2.静止物体的质量', id: 2},
      {name: '3.运动物体的尺寸', id: 3},
      {name: '4.静止物体的尺寸', id: 4},
      {name: '5.运动物体的面积', id: 5},
      {name: '6.静止物体的面积', id: 6},
      {name: '7.运动物体的体积', id: 7},
      {name: '8.静止物体的体积', id: 8},
      {name: '9.速度', id: 9},
      {name: '10.力', id: 10},
      {name: '11.应力或压强', id: 11},
      {name: '12.形状', id: 12},
      {name: '13.机构的稳定性', id: 13},
      {name: '14.强度', id: 14},
      {name: '15.运动物体的耐久时间', id: 15},
      {name: '16.静止物体的耐久时间', id: 16},
      {name: '17.温度', id: 17},
      {name: '18.照度', id: 18},
      {name: '19.运动物体的能量消耗', id: 19},
      {name: '20.静止物体的能量消耗', id: 20},
      {name: '21.功率', id: 21},
      {name: '22.能量损失', id: 22},
      {name: '23.物质损失', id: 23},
      {name: '24.信息损失', id: 24},
      {name: '25.时间损失', id: 25},
      {name: '26.物质的量', id: 26},
      {name: '27.可靠性', id: 27},
      {name: '28.测量精度', id: 28},
      {name: '29.制造精度', id: 29},
      {name: '30.作用于物体的有害因素', id: 30},
      {name: '31.物体产生的有害因素', id: 31},
      {name: '32.制造性', id: 32},
      {name: '33.操作性', id: 33},
      {name: '34.维修性', id: 34},
      {name: '35.适应性', id: 35},
      {name: '36.装置的复杂程度', id: 36},
      {name: '37.测控的难度', id: 37},
      {name: '38.自动化程度', id: 38},
      {name: '39.生产率', id: 39},
    ],
    items_n: [
      {name: '1.运动物体的质量', id: 1},
      {name: '2.静止物体的质量', id: 2},
      {name: '3.运动物体的尺寸', id: 3},
      {name: '4.静止物体的尺寸', id: 4},
      {name: '5.运动物体的面积', id: 5},
      {name: '6.静止物体的面积', id: 6},
      {name: '7.运动物体的体积', id: 7},
      {name: '8.静止物体的体积', id: 8},
      {name: '9.速度', id: 9},
      {name: '10.力', id: 10},
      {name: '11.应力或压强', id: 11},
      {name: '12.形状', id: 12},
      {name: '13.机构的稳定性', id: 13},
      {name: '14.强度', id: 14},
      {name: '15.运动物体的耐久时间', id: 15},
      {name: '16.静止物体的耐久时间', id: 16},
      {name: '17.温度', id: 17},
      {name: '18.照度', id: 18},
      {name: '19.运动物体的能量消耗', id: 19},
      {name: '20.静止物体的能量消耗', id: 20},
      {name: '21.功率', id: 21},
      {name: '22.能量损失', id: 22},
      {name: '23.物质损失', id: 23},
      {name: '24.信息损失', id: 24},
      {name: '25.时间损失', id: 25},
      {name: '26.物质的量', id: 26},
      {name: '27.可靠性', id: 27},
      {name: '28.测量精度', id: 28},
      {name: '29.制造精度', id: 29},
      {name: '30.作用于物体的有害因素', id: 30},
      {name: '31.物体产生的有害因素', id: 31},
      {name: '32.制造性', id: 32},
      {name: '33.操作性', id: 33},
      {name: '34.维修性', id: 34},
      {name: '35.适应性', id: 35},
      {name: '36.装置的复杂程度', id: 36},
      {name: '37.测控的难度', id: 37},
      {name: '38.自动化程度', id: 38},
      {name: '39.生产率', id: 39},
    ]
  }),
  methods: {
    showDialog(index){
      this.index = index
      this.trizDialog = true
    },
    //获得发明原理
    getSolve(x, y) {
      return this.triz[x - 1][y - 1]
    },
    validate() {
      this.resultArray = []
      this.$refs.form.validate()
      if (this.valid === true) {
        let results = this.getSolve(this.form.y, this.form.n) //结果（发明原理编号数组）
        // console.log(results)
        if (results[0] === 0 || results === undefined){
          this.$message.warn({ content: '无效矛盾对',
            icon: () =>
              this.$createElement("a-icon", {
                props: {
                  type: "stop"
                }
              }),
            top: '100px',
            duration: 2
          });
          return
        }
        for(let i = 0;i < results.length;i++){
          // console.log(this.solve[results[i]])
          this.resultArray.push(this.solve[results[i]])
        }
        this.$emit("results", results, this.resultArray, this.index)
        this.trizDialog = false
      }
    },
    //初始化矛盾矩阵和发明原理数组
    init() {
      this.triz = [
        [
          [0], [0], [15, 8, 9, 34], [0], [29, 17, 38, 34], [0], [29, 2, 40, 28], [0], [2, 8, 15, 38], [8, 10, 18, 37],
          [10, 36, 37, 40], [10, 14, 35, 40], [1, 35, 19, 39], [28, 27, 18, 40], [5, 34, 31, 35], [0], [6, 29, 4, 38],
          [19, 1, 32], [35, 12, 34, 31], [0], [12, 36, 18, 31], [6, 2, 34, 19], [5, 35, 3, 31], [10, 24, 35],
          [10, 35, 20, 28], [3, 26, 18, 31], [3, 11, 1, 27], [28, 27, 35, 26], [28, 35, 26, 18], [22, 21, 18, 27],
          [22, 35, 31, 39], [27, 28, 1, 36], [35, 3, 2, 24], [2, 27, 28, 11], [29, 5, 15, 8], [26, 30, 36, 34],
          [28, 29, 26, 32], [26, 35, 18, 19], [35, 3, 24, 37]
        ]
        ,
        [
          [0], [0], [0], [10, 1, 29, 35], [0], [35, 30, 13, 2], [0], [5, 35, 14, 2], [0], [8, 10, 19, 35],
          [13, 29, 10, 18], [13, 10, 29, 14], [26, 39, 1, 40], [28, 2, 10, 27], [0], [2, 27, 19, 6], [28, 19, 32, 22],
          [35, 19, 32], [0], [18, 19, 28, 1], [15, 19, 18, 22], [18, 19, 28, 15], [5, 8, 13, 30], [10, 15, 35],
          [10, 20, 35, 26], [19, 6, 18, 26], [10, 28, 8, 3], [18, 26, 28], [10, 1, 35, 17], [2, 19, 22, 37],
          [35, 22, 1, 39], [28, 1, 9], [6, 13, 1, 32], [2, 27, 28, 11], [19, 15, 29], [1, 10, 26, 39], [25, 28, 17, 15],
          [2, 26, 35], [1, 28, 15, 35,]
        ]
        ,
        [
          [15, 8, 29, 34], [0], [0], [0], [15, 17, 4], [0], [7, 17, 4, 35], [0], [13, 4, 8], [17, 10, 4], [1, 18, 35],
          [1, 8, 10, 29], [1, 18, 15, 34], [8, 35, 29, 34], [19], [0], [10, 15, 19], [32], [8, 35, 24], [0], [1, 35],
          [7, 2, 35, 39], [4, 29, 23, 10], [1, 24], [15, 2, 29], [29, 35], [10, 14, 29, 40], [28, 32, 4], [10, 1, 35, 17],
          [1, 15, 17, 24], [17, 15], [1, 29, 17], [15, 29, 35, 4], [1, 28, 10], [14, 15, 1, 16], [1, 19, 26, 24],
          [35, 1, 26, 24], [17, 24, 26, 16], [14, 4, 28, 29]
        ]
        ,
        [
          [0], [35, 28, 40, 29], [0], [0], [0], [17, 7, 10, 40], [0], [35, 8, 2, 14], [0], [28, 10], [1, 14, 35],
          [13, 14, 15, 7], [39, 37, 35], [15, 14, 28, 26], [0], [1, 40, 35], [3, 35, 38, 18], [3, 25], [0], [0], [12, 8],
          [6, 28], [10, 28, 24, 35], [24, 26], [30, 29, 14], [0], [15, 29, 28], [32, 28, 3], [2, 32, 10], [1, 18], [0],
          [15, 17, 27], [2, 25], [3], [1, 35], [1, 26], [26], [0], [30, 14, 27, 26]
        ]
        ,
        [
          [2, 14, 29, 4], [0], [14, 15, 18, 4], [0], [0], [0], [7, 14, 17, 4], [0], [29, 30, 4, 34], [19, 30, 35, 2],
          [10, 15, 36, 28], [5, 34, 29, 4], [11, 2, 13, 39], [3, 15, 40, 14], [6, 3], [0], [2, 15, 16], [15, 32, 19, 13],
          [19, 32], [0], [19, 10, 32, 18], [15, 17, 30, 26], [10, 35, 2, 39], [30, 26], [26, 4], [29, 30, 6, 13], [29, 9],
          [26, 28, 32, 3], [2, 32,], [22, 33, 28, 1], [17, 2, 18, 39], [13, 1, 26, 24], [15, 17, 13, 16],
          [15, 13, 10, 1], [15, 30], [14, 1, 13], [2, 36, 26, 18], [14, 30, 28, 23], [10, 26, 34, 2]
        ]
        ,
        [
          [0], [30, 2, 14, 18], [0], [26, 7, 9, 39], [0], [0], [0], [0], [0], [1, 18, 35, 36], [10, 15, 36, 37], [0],
          [2, 38], [40], [0], [2, 10, 19, 30], [35, 39, 38], [0], [0], [0], [17, 32], [17, 7, 30], [10, 14, 18, 39],
          [30, 16], [10, 35, 4, 18], [2, 18, 40, 4], [32, 35, 40, 4], [26, 28, 32, 3], [2, 29, 18, 36], [27, 2, 39, 35],
          [22, 1, 40], [40, 16], [16, 4], [16], [15, 16], [1, 18, 36], [2, 35, 30, 18], [23], [10, 15, 17, 7]
        ]
        ,
        [
          [2, 26, 29, 40], [0], [1, 7, 35, 4], [0], [1, 7, 4, 17], [0], [0], [0], [29, 4, 38, 34], [15, 35, 36, 37],
          [6, 35, 36, 37], [1, 15, 29, 4,], [28, 10, 1, 39], [9, 14, 15, 7], [6, 35, 4], [0], [34, 39, 10, 18],
          [10, 13, 2], [35], [0], [35, 6, 13, 18], [7, 15, 13, 16], [36, 39, 34, 10], [2, 22], [2, 6, 34, 10],
          [29, 30, 7], [14, 1, 40, 11], [25, 26, 28], [25, 28, 2, 16], [22, 21, 27, 35], [17, 2, 40, 1], [29, 1, 40],
          [15, 13, 30, 12], [10], [15, 29], [26, 1], [29, 26, 4], [35, 34, 16, 24], [10, 6, 2, 34]
        ]
        ,
        [
          [0], [35, 10, 19, 14], [19, 14], [35, 8, 2, 14], [0], [0], [0], [0], [0], [2, 18, 37], [24, 35], [7, 2, 35],
          [34, 28, 35, 40], [9, 14, 17, 15], [0], [35, 34, 38], [35, 6, 4], [0], [0], [0], [30, 6], [0], [10, 39, 35, 34],
          [0], [35, 16, 32, 18], [35, 3], [2, 35, 16], [0], [35, 10, 25], [34, 39, 19, 27], [30, 18, 35, 4], [35], [0],
          [1], [0], [1, 31], [2, 17, 26], [0], [35, 37, 10, 2]
        ]
        ,
        [
          [2, 28, 13, 38], [0], [13, 14, 8], [0], [29, 30, 34], [0], [7, 29, 34], [0], [0], [13, 28, 15, 19],
          [6, 18, 38, 40], [35, 15, 18, 34], [28, 33, 1, 18], [8, 3, 26, 14], [3, 19, 35, 5], [0], [28, 30, 36, 2],
          [10, 13, 19], [8, 15, 35, 38], [0], [19, 35, 38, 2], [14, 20, 19, 35], [10, 13, 28, 38], [13, 26], [0],
          [10, 19, 29, 38], [11, 35, 27, 28], [28, 32, 1, 24], [10, 28, 32, 25], [1, 28, 35, 23], [2, 24, 32, 21],
          [35, 13, 8, 1], [32, 28, 13, 12], [34, 2, 28, 27], [15, 10, 26], [10, 28, 4, 34], [3, 34, 27, 16], [10, 18], [0]
        ]
        ,
        [
          [8, 1, 37, 18], [18, 13, 1, 28], [17, 19, 9, 36], [28, 10], [19, 10, 15], [1, 18, 36, 37], [15, 9, 12, 37],
          [2, 36, 18, 37], [13, 28, 15, 12], [0], [18, 21, 11], [10, 35, 40, 34], [35, 10, 21], [35, 10, 14, 27], [19, 2],
          [0], [35, 10, 21], [0], [19, 17, 10], [1, 16, 36, 37], [19, 35, 18, 37], [14, 15], [8, 35, 40, 5], [0],
          [10, 37, 36], [14, 29, 18, 36], [3, 35, 13, 21], [35, 10, 23, 24], [28, 29, 37, 36], [1, 35, 40, 18],
          [13, 3, 36, 24], [15, 37, 18, 1], [1, 28, 3, 25], [15, 1, 11], [15, 17, 18, 20], [26, 35, 10, 18],
          [36, 37, 10, 19], [2, 35], [3, 28, 35, 37]
        ]
        ,
        [
          [10, 36, 37, 40], [13, 29, 10, 18], [35, 10, 36], [35, 1, 14, 16], [10, 15, 36, 28], [10, 15, 36, 24],
          [6, 35, 10], [35, 34], [6, 35, 36], [36, 35, 21], [0], [35, 4, 15, 10], [35, 33, 2, 40], [9, 18, 3, 40],
          [19, 3, 27], [0], [35, 39, 19, 2], [0], [14, 24, 10, 37], [0], [10, 35, 14], [2, 36, 25], [10, 36, 37], [0],
          [37, 36, 4], [10, 14, 36], [10, 13, 19, 35], [6, 28, 25], [3, 35], [22, 2, 37], [2, 33, 27, 18], [1, 35, 16],
          [11], [2], [35], [19, 1, 35], [2, 36, 37], [35, 24], [10, 14, 35, 37]
        ]
        ,
        [
          [8, 10, 29, 40], [15, 10, 26, 3], [29, 34, 5, 4], [13, 14, 10, 7], [5, 34, 4, 10], [0], [14, 4, 15, 22],
          [7, 2, 35], [35, 15, 34, 18], [35, 10, 37, 40], [34, 15, 10, 14], [0], [33, 1, 18, 4], [30, 14, 10, 40],
          [14, 26, 9, 25], [0], [22, 14, 19, 32], [13, 15, 32], [2, 6, 34, 14], [0], [4, 6, 2], [14], [35, 29, 3, 5], [0],
          [14, 10, 34, 17], [36, 22], [10, 40, 16], [28, 32, 1], [32, 30, 40], [22, 1, 2, 35], [35, 1], [1, 32, 17, 28],
          [32, 15, 26], [2, 13, 1], [1, 15, 29], [16, 29, 1, 28], [15, 13, 39], [15, 1, 32], [17, 26, 34, 10]
        ]
        ,
        [
          [21, 35, 2, 39], [26, 39, 1, 40], [13, 15, 1, 28], [37], [2, 11, 13], [39], [28, 10, 19, 39], [34, 28, 35, 40],
          [33, 15, 28, 18], [10, 35, 21, 16], [2, 35, 40], [22, 1, 18, 4], [0], [17, 9, 15], [13, 27, 10, 35],
          [39, 3, 35, 23], [35, 1, 32], [32, 3, 27, 15], [13, 19], [27, 4, 29, 18], [32, 35, 27, 31], [14, 2, 39, 6],
          [2, 14, 30, 40], [0], [35, 27], [15, 32, 35], [0], [13], [18], [35, 23, 18, 30], [35, 40, 27, 39], [35, 19],
          [32, 35, 30], [2, 35, 10, 16], [35, 30, 34, 2], [2, 35, 22, 26], [35, 22, 39, 23], [1, 8, 35], [23, 35, 40, 3]
        ]
        ,
        [
          [1, 8, 40, 15], [40, 26, 27, 1], [1, 15, 8, 35], [15, 14, 28, 26], [3, 34, 40, 29], [9, 40, 28],
          [10, 15, 14, 7], [9, 14, 17, 15], [8, 13, 26, 14], [10, 18, 3, 14], [10, 3, 18, 40], [10, 30, 35, 40],
          [13, 17, 35], [0], [27, 3, 26], [0], [30, 10, 40], [35, 19,], [19, 35, 10], [35], [10, 26, 35, 28], [35],
          [35, 28, 31, 40], [0], [29, 3, 28, 10], [29, 10, 27], [11, 3], [3, 27, 16], [3, 27], [18, 35, 37, 1],
          [15, 35, 22, 2], [11, 3, 10, 32], [32, 40, 28, 2], [27, 11, 3], [15, 3, 32], [13, 2, 28], [27, 3, 15, 40], [15],
          [29, 35, 10, 14]
        ]
        ,
        [
          [19, 5, 34, 31], [0], [2, 19, 9], [0], [3, 17, 19], [0], [10, 2, 19, 30], [0], [3, 35, 5], [19, 2, 16],
          [19, 3, 27], [14, 26, 28, 25], [13, 3, 35], [27, 3, 10], [0], [0], [19, 35, 39], [2, 19, 4, 35],
          [28, 6, 35, 18], [0], [19, 10, 35, 38], [0], [28, 27, 3, 18], [10], [20, 10, 28, 18], [3, 35, 10, 40],
          [11, 2, 13], [3], [3, 27, 16, 40], [22, 15, 33, 28], [21, 39, 16, 22], [27, 1, 4], [12, 27], [29, 10, 27],
          [1, 35, 13], [10, 4, 29, 15], [19, 29, 39, 35], [6, 10], [35, 17, 14, 19]
        ]
        ,
        [
          [0], [6, 27, 19, 16], [0], [1, 40, 35], [0], [0], [0], [35, 34, 38], [0], [0], [0], [0], [39, 3, 35, 23], [0],
          [0], [0], [19, 18, 36, 40], [0], [0], [0], [16], [0], [27, 16, 18, 38], [10], [28, 20, 10, 16], [3, 35, 31],
          [34, 27, 6, 40], [10, 26, 24], [0], [17, 1, 40, 33], [22], [35, 10], [1], [1], [2], [0], [25, 34, 6, 35],
          [1], [20, 10, 16, 38]
        ]
        ,
        [
          [36, 22, 6, 38], [22, 35, 32], [15, 19, 9], [15, 19, 9], [3, 35, 39, 18], [35, 38], [34, 39, 40, 18],
          [35, 6, 4], [2, 28, 36, 30], [35, 10, 3, 21], [35, 39, 19, 2], [14, 22, 19, 32], [1, 35, 32], [10, 30, 22, 40],
          [19, 13, 39], [19, 18, 36, 40], [0], [32, 30, 21, 16], [19, 15, 3, 17], [0], [2, 14, 17, 25], [21, 17, 35, 38],
          [21, 36, 29, 31], [0], [35, 28, 21, 18], [3, 17, 30, 39], [19, 35, 3, 10], [32, 19, 24], [24], [22, 33, 35, 2],
          [22, 35, 2, 24], [26, 27], [26, 27], [4, 10, 16], [2, 18, 27], [2, 17, 16], [3, 27, 35, 31], [26, 2, 19, 16],
          [15, 28, 35]
        ]
        ,
        [
          [19, 1, 32], [2, 35, 32], [19, 32, 16], [0], [19, 32, 26], [0], [2, 13, 10], [0], [10, 13, 19], [26, 19, 6],
          [0], [32, 30], [32, 3, 27], [35, 19], [2, 19, 6], [0], [32, 35, 19], [0], [32, 1, 19], [32, 35, 1, 15], [32],
          [19, 16, 1, 6], [13, 1], [1, 6], [19, 1, 26, 17], [1, 19], [0], [11, 15, 32], [3, 32], [15, 19],
          [35, 19, 32, 39], [19, 35, 28, 26], [28, 26, 19], [15, 17, 13, 16], [15, 1, 19], [6, 32, 13], [32, 15],
          [2, 26, 10], [2, 25, 16]
        ]
        ,
        [
          [12, 18, 28, 31], [0], [12, 28], [0], [15, 19, 25], [0], [35, 13, 18], [0], [8, 15, 35], [16, 26, 21, 2],
          [23, 14, 25], [12, 2, 39], [19, 13, 17, 24], [5, 19, 9, 35], [28, 35, 6, 18], [0], [19, 24, 3, 14], [2, 15, 19],
          [0], [0], [6, 19, 37, 18], [12, 22, 15, 24], [35, 24, 18, 5], [0], [35, 38, 19, 18], [34, 23, 16, 18],
          [19, 21, 11, 27], [3, 1, 32], [0], [1, 35, 6, 27], [2, 35, 6], [28, 26, 30], [19, 35], [1, 15, 17, 28],
          [15, 17, 13, 16], [2, 29, 27, 28], [35, 38], [32, 2], [12, 28, 35]
        ]
        ,
        [
          [0], [19, 9, 26, 27], [0], [0], [0], [0], [0], [0], [0], [36, 37], [0], [0], [27, 4, 29, 18], [35], [0], [0],
          [0], [19, 2, 35, 32], [0], [0], [0], [0], [28, 27, 18, 31], [0], [0], [3, 35, 31], [10, 36, 23], [0], [0],
          [10, 2, 22, 37], [19, 22, 18], [1, 4], [0], [0], [0], [0], [19, 35, 16, 25], [0], [1, 6]
        ]
        ,
        [
          [8, 36, 38, 31], [19, 26, 17, 27], [1, 10, 35, 37], [0], [19, 38], [17, 32, 13, 38], [35, 6, 38], [30, 6, 25],
          [15, 35, 2], [26, 2, 36, 35], [22, 10, 35], [29, 14, 2, 40], [35, 32, 15, 31], [26, 10, 28], [19, 35, 10, 38],
          [16], [2, 14, 17, 25], [16, 6, 19], [16, 6, 19, 17], [0], [0], [10, 35, 38], [28, 27, 18, 38], [10, 19],
          [35, 20, 10, 6], [4, 34, 19], [19, 24, 26, 31], [32, 15, 2], [32, 2], [19, 22, 31, 2], [2, 35, 18],
          [26, 10, 34], [26, 35, 10], [35, 2, 10, 34], [19, 17, 34], [20, 19, 30, 34], [19, 35, 16], [28, 2, 17],
          [28, 35, 34]
        ]
        ,
        [
          [15, 6, 19, 28], [19, 6, 18, 9], [7, 2, 6, 13], [6, 38, 7], [15, 26, 17, 30], [17, 7, 30, 18], [7, 18, 23],
          [7], [16, 35, 38], [36, 38], [0], [0], [14, 2, 39, 6], [26], [0], [0], [19, 38, 7], [1, 13, 32, 15], [0], [0],
          [3, 38], [0], [35, 27, 2, 37], [19, 10], [10, 18, 32, 7], [7, 18, 25], [11, 10, 35], [32], [0], [21, 22, 35, 2],
          [21, 35, 2, 22], [0], [35, 32, 1], [2, 19], [0], [7, 23], [35, 3, 15, 23], [2], [28, 10, 29, 35]
        ]
        ,
        [
          [35, 6, 23, 40], [35, 6, 22, 32], [14, 29, 10, 39], [10, 28, 24], [35, 2, 10, 31], [10, 18, 39, 31],
          [1, 29, 30, 36], [3, 39, 18, 31], [10, 13, 28, 38], [14, 15, 18, 40], [3, 36, 37, 10], [29, 35, 3, 5],
          [2, 14, 30, 40], [35, 28, 31, 40], [28, 27, 3, 18], [27, 16, 18, 38], [21, 36, 39, 31], [1, 6, 13],
          [35, 18, 24, 5], [28, 27, 12, 31], [28, 27, 18, 38], [35, 27, 2, 31], [0], [0], [15, 18, 35, 10],
          [6, 3, 10, 24], [10, 29, 39, 35], [16, 34, 31, 28], [35, 10, 24, 31], [33, 22, 30, 40], [10, 1, 34, 29],
          [15, 34, 33], [32, 28, 2, 24], [2, 35, 34, 27], [15, 10, 2], [35, 10, 28, 24], [35, 18, 10, 13], [35, 10, 18],
          [28, 35, 10, 23]
        ]
        ,
        [
          [10, 24, 35], [10, 35, 5], [1, 26], [26], [30, 26], [30, 16], [0], [2, 22], [26, 32], [0], [0], [0], [0], [0],
          [10], [10], [0], [19], [0], [0], [10, 19], [19, 10], [0], [0], [24, 26, 28, 32], [24, 28, 35], [10, 28, 23],
          [0], [0], [22, 10, 1], [10, 21, 22], [32], [27, 22], [0], [0], [0], [35, 33], [35], [13, 23, 15]
        ]
        ,
        [
          [10, 20, 37, 35], [10, 20, 26, 5], [15, 2, 29], [30, 24, 14, 5], [26, 4, 5, 16], [10, 35, 17, 4],
          [2, 5, 34, 10], [35, 16, 32, 18], [0], [10, 37, 36, 5], [37, 36, 4], [4, 10, 34, 17], [35, 3, 22, 5],
          [29, 3, 28, 18], [20, 10, 28, 18], [28, 20, 10, 16], [35, 29, 21, 18], [1, 19, 21, 17], [35, 38, 19, 18], [1],
          [35, 20, 10, 6], [10, 5, 18, 32], [35, 18, 10, 39], [24, 26, 28, 32], [0], [35, 38, 18, 16], [10, 30, 4],
          [24, 34, 28, 32], [24, 26, 28, 18], [35, 18, 34], [35, 22, 18, 39], [35, 28, 34, 4], [4, 28, 10, 34],
          [32, 1, 10], [35, 28], [6, 29], [18, 28, 32, 10], [24, 28, 35, 30], [0]
        ]
        ,
        [
          [35, 6, 18, 31], [27, 26, 18, 35], [29, 14, 35, 18], [0], [15, 14, 29], [2, 18, 40, 4], [15, 20, 29], [0],
          [35, 29, 34, 28], [35, 14, 3], [10, 36, 14, 3], [35, 14], [15, 2, 17, 40], [14, 35, 34, 10], [3, 35, 10, 40],
          [3, 35, 31], [3, 17, 39], [0], [34, 29, 16, 18], [3, 35, 31], [35], [7, 18, 25], [6, 3, 10, 24], [24, 28, 35],
          [35, 38, 18, 16], [0], [18, 3, 28, 40], [3, 2, 28], [33, 30], [35, 33, 29, 31], [3, 35, 40, 39],
          [29, 1, 35, 27], [35, 29, 10, 25], [2, 32, 10, 25], [15, 3, 29], [3, 23, 27, 10], [3, 27, 29, 18], [8, 35],
          [13, 29, 3, 27]
        ]
        ,
        [
          [3, 8, 10, 40], [3, 10, 8, 28], [15, 9, 14, 4], [15, 29, 28, 11], [17, 10, 14, 16], [32, 35, 40, 4],
          [3, 10, 14, 24], [2, 35, 24], [21, 35, 11, 28], [8, 28, 10, 3], [10, 24, 35, 19], [35, 1, 16, 11], [0],
          [11, 28], [2, 35, 3, 25], [34, 27, 6, 40], [3, 35, 10], [11, 32, 13], [21, 11, 27, 19], [36, 23],
          [21, 11, 26, 31], [10, 11, 35], [10, 35, 29, 39], [10, 28], [10, 30, 4], [21, 28, 40, 3], [0], [32, 3, 11, 23],
          [11, 32, 1], [27, 35, 2, 40], [35, 2, 40, 26], [0], [27, 17, 40], [1, 11], [13, 35, 8, 24], [13, 35, 1],
          [27, 40, 28], [11, 13, 27], [1, 35, 29, 38]
        ]
        ,
        [
          [32, 35, 26, 28], [28, 35, 25, 26], [28, 26, 5, 16], [32, 28, 3, 16], [26, 28, 32, 3], [26, 28, 32, 3],
          [32, 13, 6], [0], [28, 13, 32, 24], [32, 2], [6, 28, 32], [6, 28, 32], [32, 35, 13], [28, 6, 32], [28, 6, 32],
          [10, 26, 24], [6, 19, 28, 24], [6, 1, 32], [3, 6, 32], [0], [3, 6, 32], [26, 32, 27], [10, 16, 31, 28], [0],
          [24, 34, 38, 32], [2, 6, 32], [5, 11, 1, 23], [0], [0], [28, 24, 22, 26], [3, 33, 39, 10], [6, 35, 25, 18],
          [1, 13, 17, 34], [1, 32, 13, 11], [13, 35, 2], [27, 35, 10, 34], [26, 24, 32, 28], [28, 2, 10, 34],
          [10, 34, 28, 32]
        ]
        ,
        [
          [28, 32, 13, 18], [28, 35, 27, 9], [10, 28, 29, 37], [2, 32, 10], [28, 33, 29, 32], [2, 29, 18, 36],
          [32, 28, 2], [25, 10, 35], [10, 28, 32], [28, 19, 34, 36], [3, 35], [32, 30, 40], [30, 18], [3, 27],
          [3, 27, 40], [0], [19, 26], [3, 32], [32, 2], [0], [32, 2], [13, 23, 2], [35, 31, 10, 24], [0],
          [32, 26, 28, 18], [32, 30], [11, 32, 1], [0], [0], [26, 28, 10, 36], [4, 17, 34, 26], [0], [1, 32, 35, 23],
          [25, 10], [0], [26, 2, 18], [0], [26, 28, 18, 23], [10, 18, 32, 39]
        ]
        ,
        [
          [22, 21, 27, 39], [2, 22, 13, 24], [17, 1, 39, 4], [1, 18], [22, 1, 33, 28], [27, 2, 39, 35], [22, 23, 37, 35],
          [34, 39, 19, 27], [21, 22, 35, 28], [13, 35, 39, 18], [22, 2, 37], [22, 1, 3, 35], [35, 24, 30, 18],
          [18, 35, 37, 1], [22, 15, 33, 28], [17, 1, 40, 33], [22, 33, 35, 2], [1, 19, 32, 13], [1, 24, 6, 27],
          [10, 2, 22, 37], [19, 22, 31, 2], [21, 22, 35, 2], [33, 22, 19, 40], [22, 10, 2], [35, 18, 34],
          [35, 33, 29, 31], [27, 24, 2, 40], [28, 33, 23, 26], [26, 28, 10, 18], [0], [0], [24, 35, 2], [2, 25, 28, 39],
          [35, 10, 2], [35, 11, 22, 31], [22, 19, 29, 40], [22, 19, 29, 40], [33, 3, 34], [22, 35, 13, 24]
        ]
        ,
        [
          [19, 22, 15, 39], [35, 22, 1, 39], [17, 15, 16, 22], [0], [17, 2, 18, 39], [22, 1, 40], [17, 2, 40],
          [30, 18, 35, 4], [35, 28, 3, 23], [35, 28, 1, 40], [2, 33, 27, 18], [35, 1,], [35, 40, 27, 39],
          [15, 35, 22, 2], [15, 22, 33, 31], [21, 39, 16, 22], [22, 35, 2, 24], [19, 24, 39, 32], [2, 35, 6],
          [19, 22, 18], [2, 35, 18], [21, 35, 22, 2], [10, 1, 34], [10, 21, 29], [1, 22], [3, 24, 39, 1], [24, 2, 40, 39],
          [3, 33, 26], [4, 17, 34, 26], [0], [0], [0], [0], [0], [0], [19, 1, 31], [2, 21, 27, 1], [2], [22, 35, 18, 39]
        ]
        ,
        [
          [28, 29, 15, 16], [1, 27, 36, 13], [1, 29, 13, 17], [15, 17, 27], [13, 1, 26, 12], [16, 40], [13, 29, 1, 40],
          [35], [35, 13, 8, 1], [35, 12], [35, 19, 1, 37], [1, 28, 13, 27], [11, 13, 1], [11, 3, 10, 32], [27, 1, 4],
          [35, 16], [27, 26, 18], [28, 24, 27, 1], [28, 26, 27, 1], [1, 4], [27, 1, 12, 24], [19, 35], [15, 34, 33],
          [32, 24, 18, 16], [35, 28, 34, 4], [35, 24, 1, 24], [0], [1, 35, 12, 18], [0], [24, 2], [0], [0],
          [2, 5, 13, 16], [35, 1, 11, 9], [2, 13, 15], [27, 26, 1], [6, 28, 11, 1], [8, 28, 1], [35, 1, 10, 28]
        ]
        ,
        [
          [25, 2, 13, 15], [6, 13, 1, 25], [], [1, 17, 13, 16], [18, 16, 15, 39], [1, 16, 15, 39], [1, 16, 35, 15],
          [4, 18, 31, 39], [18, 13, 34], [28, 13, 35], [2, 32, 12], [15, 34, 29, 28], [32, 35, 30], [32, 40, 3, 28],
          [29, 3, 8, 25], [1, 16, 25], [26, 27, 13], [13, 17, 1, 24], [1, 13, 24], [0], [35, 34, 2, 10], [2, 19, 13],
          [28, 32, 2, 24], [4, 10, 27, 22], [4, 28, 10, 34], [12, 35], [17, 27, 8, 40], [25, 13, 2, 34], [1, 32, 35, 23],
          [2, 25, 28, 39], [0], [2, 5, 12], [0], [12, 26, 1, 32], [15, 34, 1, 16], [32, 25, 12, 17], [0], [1, 34, 12, 3],
          [15, 1, 28]
        ]
        ,
        [
          [2, 27, 35, 11], [2, 27, 35, 11], [1, 28, 10, 25], [3, 18, 31], [15, 32, 13], [16, 25], [25, 2, 35, 11], [1],
          [34, 39], [1, 11, 10], [13], [1, 13, 2, 4], [2, 35], [1, 11, 2, 39], [11, 29, 28, 27], [1], [4, 10],
          [15, 1, 13], [15, 1, 28, 16], [0], [15, 10, 32, 2], [15, 1, 32, 19], [2, 35, 34, 27], [0], [32, 1, 10, 25],
          [2, 28, 10, 25], [11, 10, 1, 16], [10, 2, 13], [25, 10], [35, 10, 2, 16], [0], [1, 35, 11, 10], [1, 12, 26, 15],
          [0], [7, 1, 4, 16], [35, 1, 13, 11], [0], [34, 35, 7, 13], [1, 32, 10]
        ]
        ,
        [
          [1, 6, 15, 8], [19, 15, 29, 16], [35, 1, 29, 2], [1, 35, 16], [35, 30, 29, 7], [15, 16], [15, 35, 29], [0],
          [35, 10, 14], [15, 17, 20], [35, 16], [15, 37, 1, 8], [35, 30, 14], [35, 3, 32, 6], [13, 1, 35], [2, 16],
          [27, 2, 3, 35], [6, 22, 26, 1], [19, 35, 29, 13], [0], [19, 1, 29], [18, 15, 1], [15, 10, 2, 13], [0], [35, 28],
          [3, 35, 15], [35, 13, 8, 24], [35, 5, 1, 10], [0], [35, 11, 32, 31], [0], [1, 13, 31], [15, 34, 1, 16],
          [1, 16, 7, 4], [0], [15, 29, 37, 28], [1], [27, 34, 35], [35, 28, 6, 37]
        ]
        ,
        [
          [26, 30, 34, 36], [2, 26, 35, 39], [1, 19, 26, 24], [26], [14, 1, 13, 16], [6, 36], [34, 26, 6], [1, 16],
          [34, 10, 28], [26, 16], [19, 1, 35], [29, 13, 28, 15], [2, 22, 17, 19], [2, 13, 28], [10, 4, 28, 15], [0],
          [2, 17, 13], [24, 17, 13], [27, 2, 29, 28], [0], [20, 19, 30, 34], [10, 35, 13, 2], [35, 10, 28, 29], [0],
          [6, 29], [13, 3, 27, 10], [13, 35, 1], [2, 26, 10, 34], [26, 24, 32], [22, 19, 29, 40], [19, 1],
          [27, 26, 1, 13], [27, 9, 26, 24], [1, 13], [29, 15, 28, 37], [0], [15, 10, 37, 28], [15, 1, 24], [12, 17, 28]
        ]
        ,
        [
          [27, 26, 28, 13], [6, 13, 28, 1], [16, 17, 26, 24], [26], [2, 13, 18, 17], [2, 39, 30, 16], [29, 1, 4, 16],
          [2, 18, 26, 31], [3, 4, 16, 35], [36, 28, 40, 19], [35, 36, 37, 32], [27, 13, 1, 39], [11, 22, 39, 30],
          [27, 3, 15, 28], [19, 29, 25, 39], [25, 34, 6, 35], [3, 27, 35, 16], [2, 24, 26], [35, 38, 19, 18],
          [19, 35, 16], [19, 1, 16, 10], [35, 3, 15, 19], [1, 18, 10, 24], [35, 33, 27, 22], [18, 28, 32, 9],
          [3, 27, 29, 18], [27, 40, 28, 8], [26, 24, 32, 28], [0], [22, 19, 29, 28], [2, 21], [5, 28, 11, 29], [2, 5],
          [12, 26], [1, 15,], [15, 10, 37, 28], [0], [34, 21], [35, 18]
        ]
        ,
        [
          [28, 26, 18, 35], [28, 26, 35, 10], [14, 13, 28, 27], [23], [17, 14, 13], [0], [35, 13, 16], [0], [28, 10],
          [2, 35], [13, 35], [15, 32, 1, 13], [18, 1], [25, 13], [6, 9], [0], [26, 2, 19], [8, 32, 19], [2, 32, 13],
          [28, 2, 27], [23, 28], [35, 10, 18, 5], [35, 33], [24, 28, 35, 30], [35, 13], [11, 27, 32], [28, 26, 10, 34],
          [28, 26, 18, 23], [2, 33], [2], [1, 26, 13], [1, 12, 34, 3], [1, 35, 13], [27, 4, 1, 35], [15, 24, 10],
          [34, 27, 25], [0], [5, 12, 35, 26], [0]
        ]
        ,
        [
          [35, 26, 24, 37], [28, 27, 15, 3], [18, 4, 28, 38], [30, 7, 14, 26], [10, 26, 34, 31], [10, 35, 17, 7],
          [2, 6, 34, 10], [35, 37, 10, 2], [0], [28, 15, 10, 36], [10, 37, 14], [14, 10, 34, 40], [35, 3, 22, 39],
          [29, 28, 10, 18], [35, 10, 2, 18], [20, 10, 16, 38], [35, 21, 28, 10], [26, 17, 19, 1], [35, 10, 38, 19], [1],
          [35, 20, 10], [28, 10, 29, 35], [28, 10, 35, 23], [13, 15, 23], [0], [35, 38], [1, 35, 10, 38],
          [1, 10, 34, 28], [32, 1, 18, 10], [22, 35, 13, 24], [35, 22, 18, 39], [35, 28, 2, 24], [1, 28, 7, 19],
          [1, 32, 10, 25], [1, 35, 28, 37], [12, 17, 28, 24], [35, 18, 27, 2], [5, 12, 35, 26], [0]
        ]
      ]
      this.solve = [
        '无效矛盾对',
        '分割原理',
        '抽出原理',
        '局部特性原理',
        '不对称原理',
        '合并原理',
        '多功能原理',
        '嵌套原理',
        '质量补偿原理',
        '预先反作用原理',
        '预先作用原理',
        '预置防范原理',
        '等势原理',
        '反向作用原理',
        '曲面化原理',
        '动态化原理',
        '不足或过度作用原理',
        '多维化原理',
        '振动原理',
        '周期性作用原理',
        '有效持续作用原理',
        '急速作用原理',
        '变害为益原理',
        '反馈原理',
        '中介物原理',
        '自助原理',
        '复制原理',
        '一次性用品替代原理',
        '替换机械系统原理',
        '气压或液压结构替代原理',
        '柔性壳体或薄膜结构原理',
        '多孔材料原理',
        '变换颜色原理',
        '同质性原理',
        '自弃与修复原理',
        '改变状态原理',
        '相变原理',
        '热膨胀原理',
        '强氧化作用原理',
        '惰性（或真空）环境原理',
        '复合材料原理'
      ]
    },
  },
  created() {
    this.init()
  },
  activated() {
    this.init()
  }
}
</script>

<style scoped>

</style>
